#pragma once

#include "TrataEventos.h"
#include "GamePlay.h"
#include <iostream>
using namespace std;

class Video
{
public:
	Video(void);
	~Video(void);
	void init(TrataEventos *evento);
	irr::IrrlichtDevice* getDevice();
	void limpaFrameBuffer();
	void renderizaGUI();
	void fechaCena();
	void desenhaJanela(GamePlay *gameplay);
	void desaloca();
	void calculaFPS();
	f32 getFrameDeltaTime();
	bool run();
	IVideoDriver* getDriver();
private:
	IrrlichtDevice *device;
	IVideoDriver* driver;
	int lastFPS;
	f32 frame;
	u32 then;
};
